<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/4/13 0013 19:29
 */


// 根据提交的内容创建网站

require_once 'file.php';

$file = $_GET['file'];
var_dump($file);
var_dump($file);
$name = substr($file, 0, -4);

$tpath = "site/".$name."_".time().'/';
get_zip_originalsize("./template/".$file,$tpath);
header('location:template-list.php?site='.$tpath);

